import request from '@/utils/request'

// 查询设备名称列表
export function listInspectionDevice(query) {
  return request({
    url: '/iot/InspectionDevice/list',
    method: 'get',
    params: query
  })
}
export function alllList(query) {
  return request({
    url: '/iot/InspectionDevice/alllList',
    method: 'get',
    params: query
  })
}

// 查询设备名称详细
export function getInspectionDevice(id) {
  return request({
    url: '/iot/InspectionDevice/' + id,
    method: 'get'
  })
}

// 新增设备名称
export function addInspectionDevice(data) {
  return request({
    url: '/iot/InspectionDevice',
    method: 'post',
    data: data
  })
}

// 修改设备名称
export function updateInspectionDevice(data) {
  return request({
    url: '/iot/InspectionDevice',
    method: 'put',
    data: data
  })
}

// 删除设备名称
export function delInspectionDevice(id) {
  return request({
    url: '/iot/InspectionDevice/' + id,
    method: 'delete'
  })
}
